﻿import Vue from 'vue'
import Vuex from 'vuex'
import getters from "./getters/getter"
import mutations from './mutaions/mutaion'
import actions from './actions/action'
import layer_show_state from "./state/certain_layer/layer"
import user_post from "./state/user_post/user_post.js"
import my_exchange from './state/Exchange/my_exchange'
import Send_man from "./state/Send_Man/Send_man"
import Advance  from "./state/Advance/Advance"
import set_b_m from "./state/Beginner_Mode/BeginnerMode.js"
import common_card from "./state/common_card/common_card.js"
import Page_refresh from "./state/Page_refresh/Page_refresh.js"
import user_index from "./state/user_index/user_Index.js"
import first_view from "./state/first_view/first_view.js";
Vue.use(Vuex)
const state = {
  wx_user_id: "",
  img_base:"https://wx.yizhiweimeng.com",
  base_ajax:"http://192.168.1.105:8080",
  //user_info
  user_info: null,
  //letter 页 send user img
  send_user_img:"",
  //下变得btn 切换状态
  footer_menu_list:
  {
      0: { text: "首页", sign_c: true, sign: 0, icon_path: "static/img/new_footer/new_index_act.png", url_name: './app_index.html', css_name: "icon-bg_home", css_name1: "icon-bg_home1", choice_css: true, choice_oth: true, icon:"static/img/new_footer/new_index.png"},
      1: { text: '获取地址', sign_c: false, sign: 0, icon_path: "static/img/new_footer/new_friend_act.png", url_name: './friend.html', css_name: "icon-bg_location", css_name1: "icon-bg_location1", choice_css: true, choice_oth: false, icon:"static/img/new_footer/new_friend.png"},
      2: { text: '浪漫排行', sign_c: false, sign: 0, icon_path: "static/img/new_footer/new_wish_act.png", url_name: './wx_rank.html', css_name: "icon-bg_cup", css_name1: "icon-bg_cup1", choice_css: true, choice_oth: false, icon:"static/img/new_footer/new_wish.png"},
      3: { text: '礼物兑换', sign_c: false, sign: 0, icon_path: "static/img/new_footer/new_gift_act.png", url_name: './app_Exchange.html', css_name: "icon-bg_gift", css_name1: "icon-bg_gift1", choice_css: true, choice_oth: false, icon:"static/img/new_footer/new_gift.png"},
      4: { text: '我的主页', sign_c: false, sign: 0, icon_path: "static/img/new_footer/new_me_act.png", url_name: './user_index.html', css_name: "icon-bg_me", css_name1: "icon-bg_me1", choice_css: true, choice_oth: false, icon:"static/img/new_footer/new_me.png"}
  },
  qxt_footer_menu_list:
    {
      0: { text: "求学团", sign_c: true, sign: 0, icon_path: "static/img/school_a.png", url_name: '/index', css_name: "icon-bg_home", css_name1: "icon-bg_home1", choice_css: true, choice_oth: true, icon:"static/img/school.png"},
      1: { text: '志愿团', sign_c: false, sign: 0, icon_path: "static/img/sup_a.png", url_name: '/sup', css_name: "icon-bg_location", css_name1: "icon-bg_location1", choice_css: true, choice_oth: false, icon:"static/img/sup.png"},
      2: { text: '真实故事', sign_c: false, sign: 0, icon_path: "static/img/class_a.png", url_name: '/real_story', css_name: "icon-bg_cup", css_name1: "icon-bg_cup1", choice_css: true, choice_oth: false, icon:"static/img/class.png"},
      3: { text: '校园百科', sign_c: false, sign: 0, icon_path: "static/img/baike_a.png", url_name: '/baike', css_name: "icon-bg_gift", css_name1: "icon-bg_gift1", choice_css: true, choice_oth: false, icon:"static/img/baike.png"},
      4: { text: '我的', sign_c: false, sign: 0, icon_path: "static/img/people_a.png", url_name: '/sup_me', css_name: "icon-bg_me", css_name1: "icon-bg_me1", choice_css: true, choice_oth: false, icon:"static/img/people.png"}
  },
  BottomBtn_pre_click_id: 0,
  bottom_btn:{},//入库页的bottom btn
  in_page_init:false,//入库页是否有初始化过
  in_page_main:{
    a:{
      list:[
        {name:"白菜",click:false,num:0,icon:"/static/sprites/input_ice_icon.png"},
        {name:"白菜2",click:false,num:0,icon:"/static/sprites/input_ice_icon.png"},
        {name:"白菜3",click:false,num:0,icon:"/static/sprites/input_ice_icon.png"},
        {name:"白菜4",click:false,num:0,icon:"/static/sprites/input_ice_icon.png"}
      ],
      name:"a"
    }
  },//入库页面main
  pre_bottom_click:1,
  Loading_show:true,
  in_list_show:false
}

//Advance
Object.assign(state, Advance);
//layer_show_state
Object.assign(state, layer_show_state);
//letter 的用户信息提交
Object.assign(state, user_post);
//Exchange my_exchange
Object.assign(state,my_exchange);
//Send_man
Object.assign(state, Send_man);
//set_b_m
Object.assign(state,set_b_m);
//common_card
Object.assign(state,common_card);
//Page_refresh
Object.assign(state,Page_refresh);
Object.assign(state,user_index);
Object.assign(state,first_view);
export default new Vuex.Store({
  state,
  getters,
  actions,
  mutations
})
